﻿@using Framework.Util.Helpers
@model MvcContrib.Pagination.IPagination<Project.Domain.Entities.WithDraw>
@{
    ViewBag.Title = "listallwithdraw";
}
<h2>Danh Sách Withdraw</h2>
<table style=" width:220px;" class="table_content" >
    <tr style=" text-align:center;">
        <th>
            Type
        </th>
        <th>
            UserName
        </th>
        <th>
            Amount
        </th>
        <th>
            Status
        </th>
    </tr>
    @{
        var fch = 1;
        var refix = "fl";
        }
    @foreach (var item in Model)
    {
        fch = fch + 1;
        refix = fch % 2 == 0 ? "tr" : "fl";
        <tr class="@Html.Raw(refix)status">
            <td>
                <img src="@Url.Content("~/Content/images/lricon.gif")" alt="Alternate Text" />
            </td>
            <td>
                @item.User.UserName
            </td>
            <td>
                 @string.Format("{0}$",Html.Slip(item.Amount.ToString()))
            </td>
            <td>
                @(item.Approved ? Html.Raw("Approved") : Html.Raw("Waiting"))
            </td>
        </tr>         
    }
</table>

